package cn.lizemin.state.version0.entity;

/**
 * @author lzm
 * @version 1.0
 * @description: 交通灯的规则：
 *  * 黄-->红
 *  * 红-->黄
 *  * 绿-->黄
 *  * 红-->绿
 * @date 2022/4/25 10:05
 */
public interface State {

    void switchToGreen(TrafficLight trafficLight);

    void switchToYellow(TrafficLight trafficLight);

    void switchToRed(TrafficLight trafficLight);


}
